package com.luyuan.crm.user.service;

import java.util.List;

import org.hibernate.criterion.Order;

import com.luyuan.crm.user.PartyGroup;
import com.ruijie.foundation.annotation.DomainService;
import com.ruijie.foundation.query.Page;
import com.ruijie.foundation.query.criteria.CriteriaTemplate;

@DomainService
public interface PartyGroupService {
    PartyGroup getById(String id);

    /**	
     * <p>Description: 增加用户           </p>
     * <p>Create Time: 2010-8-4   </p>
     * @author Administrator
     * @param userModel
     */
    void addPartyGroup(PartyGroup partyGroup);

    /** 
     * <p>Description:   删除用户           </p>
     * <p>Create Time: 2010-8-4   </p>
     * @author Administrator
     * @param user
     */
    void removePartyGroup(PartyGroup partyGroup);

    /**	
     * <p>Description:   更新用户          </p>
     * <p>Create Time: 2010-8-4   </p>
     * @author Administrator
     * @param user
     */
    void updatePartyGroup(PartyGroup partyGroup);

    List<PartyGroup> getAll();

    Page pagedQuery(CriteriaTemplate criteria, int pageNo, int pageSize, List<Order> orders);
}
